cmake_minimum_required (VERSION 2.8)

project (demo)

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
set(SRC_LIST ${PROJECT_SOURCE_DIR}/src/main.cc)

include_directories (${PROJECT_SOURCE_DIR}/testFunc/inc)
find_library (ADD_LIB add HINTS ${PROJECT_SOURCE_DIR}/testFunc/lib)
add_executable(main ${SRC_LIST})
target_link_libraries(main ${ADD_LIB})